package com.dddd.blog.blogpost.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dddd.blog.api.post.pojo.Post;
import com.dddd.blog.blogcommon.pojo.vo.PostVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dddd
 * @since 2022-02-27
 */
@Mapper
public interface PostMapper extends BaseMapper<Post> {


    int addPostByMap(Map<String,Object> map);


    int addPostByMapList(List<Map<String,Object>> list);


    PostVO getPostById(Long id);


}
